/**
 * Created by zhulijun on 2017/5/4.
 */
import * as types from '../../mutation-types/template/index';

const state = {
    showMessage : false,
    messageIds: [],
    messageNames: [],
    messageTels: []
};

const mutations = {
    [types.SHOW_MESSAGE] (state , {showMessage}){
        state.showMessage = showMessage;
    },
    [types.MESSAGE_IDS] (state , {messageIds}){
        state.messageIds = messageIds;
    },
    [types.MESSAGE_NAMES] (state , {messageNames}){
        state.messageNames = messageNames;
    },
    [types.MESSAGE_TELS] (state , {messageTels}){
        state.messageTels = messageTels;
    }
};

export default {
    state ,
    mutations
};
